package info.mhylle.mediaplayer.playlist.webitems;

public class WebArtist {
    private String name;
    private String webName;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWebName() {
        return webName;
    }

    public void setWebName(String webName) {
        this.webName = webName;
    }

    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof WebArtist)) return false;

        WebArtist webArtist = (WebArtist) o;

        if (name != null ? !name.equals(webArtist.name) : webArtist.name != null) return false;
        if (webName != null ? !webName.equals(webArtist.webName) : webArtist.webName != null) return false;

        return true;
    }

    public int hashCode() {
        int result;
        result = (name != null ? name.hashCode() : 0);
        result = 31 * result + (webName != null ? webName.hashCode() : 0);
        return result;
    }
}
